{# -*- coding: utf-8 -*- #}
{#
Copyright 2011 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
#}
{% extends "base.html" %}
{% block title %}{% trans %}検索結果{% endtrans %}{% endblock %}
{% block content %}
{% trans %}安否情報一覧{% endtrans %}<br>
<form action="" method="post" charset="shift_jis">
<input type="text" name="q" value="{{ query }}">
<input type="submit" value="{% trans %}検索{% endtrans %}">
</form>

{% if num >= 30 %}
{% trans num=num %}{{ num }}件以上。{% endtrans %}{% trans num=num %}{{ num }}件のみ表示中。{% endtrans %}<br>
{% else %}
{% trans num=num %}{{ num }}件みつかりました。{% endtrans %}<br>
{% endif %}
{% for result in results %}
  <hr>
  <a href="{{ url_for('view') }}?id={{ result.person_record_id }}">{{ result.last_name }} {{ result.first_name }}</a><br>
  {% if result.home_joined_address %}
  {% trans %}自宅住所{% endtrans %}: {{ result.home_joined_address }}<br>
  {% endif %}
  {% if result.status %}
  {% trans %}状況{% endtrans %}: {{ result.status }}<br>
  {% else %}
  {% trans %}状況{% endtrans %}: {% trans %}指定なし{% endtrans %}<br>
  {% endif %}
{% endfor %}
{% endblock %}
